package day04;
import java.util.Scanner;
//命令通过开关
public class CommanBySwitch {
    public static void main(String[] args) {
        Scanner a=new Scanner(System.in);
        int num=2;
        System.out.println("请选择功能：1.存款，2.取款，3.转账，4.退出");
        int commad=a.nextInt();
         switch (commad){
             //案例
             case 1:
                 System.out.println("存款功能");
                 break;
             case 2:
                 System.out.println("取款业务");
                 break;
             case 3:
                 System.out.println("转账业务");
                 break;
             case 4:
                 System.out.println("退出");
                 break;
             case 5:
                 System.out.println(115);
                 break;
                 //默认的
             default:
                 System.out.println("默认的");
         }


    }

}
